# define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arr1[10] = { 1,2,2,3,3,3,4,3,3,1 };
	int arr2[10] = { 2,2,2,2,2,2,2,2,2,2 };
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		int arr3 = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = arr3;
	}
	printf("arr1:");
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr1[i]);
	}
	printf("\n");
	printf("arr2:");
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr2[i]);
	}
}